package com.sooth.micro.model.mapper;

import com.dream.system.annotation.Mapper;
import com.dream.system.annotation.Param;
import com.dream.system.annotation.Sql;
import com.sooth.micro.model.view.MicroModelBo;

import java.util.List;

@Mapper
public interface MicroModelMapper {
    @Sql("delete from micro_model where app_id=:appId")
    int deleteByAppId(@Param("appId") Long appId);

    @Sql("select @*() from micro_model where app_id=:appId")
    List<MicroModelBo> selectByAppId(Long appId);
}
